<template>
    <div>
        testHome
        <p><Button @click="addBtn">新增</Button></p>
    </div>
</template>

<script>
export default {
  data () {
    return {}
  },
  methods: {
    addBtn () {
      this.$router.push({ name: 'add' })
    }
  },
  mounted () {
    setTimeout(() => {
      this.$router.push({
        // name: this.$router.currentRoute.name,
        query: { id: 1 }

      })
    }, 2000)
  }
}
</script>

<style lang="less" type="text/less">

</style>
